<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:c="http://xmlns.jcp.org/jsf/composite"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<link type="text/css" rel="stylesheet"
		href="#{request.contextPath}/css/skytefAcesso.css" />
</h:head>
<h:body>

	<h:form>

		<p:menubar styleClass="menuBar">

			<p:menuitem value="Home"  ajax="false" icon="ui-icon-home"
			action="#{MenuBean.pageDashboard()}" 
			actionListener="#{dashboardBean.refresh()}"/>

			<p:submenu label="Cadastros">
				<p:menuitem value="Usuário" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageUsuario}"
					actionListener="#{CadUsuarioBean.carregarPg()}" />
				<p:separator />

				<p:menuitem value="Menu" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageMenu}" />
				<p:menuitem value="Categoria" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageCategoria}" />
				<p:separator />

				<p:menuitem value="Detalhamento de Produtos" ajax="false"
					icon="ui-icon-plus" action="#{MenuBean.pageDetalhamentoProd}" 
						actionListener="#{CadDetalhaProdBean.refresh()}" />
				<p:menuitem value="Produto" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageProduto}" />

				<p:menuitem value="Lista de Preço" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageListaPreco}" />
			</p:submenu>

			<p:submenu label="Estoque">
				<p:menuitem value="Entrada" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageEstoqueEntrada}" />
				<p:menuitem value="Saída" ajax="false" icon="ui-icon-minus"
					action="#{MenuBean.pageEstoqueSaida}" />
			</p:submenu>

			<p:submenu label="Relatórios">
				<p:menuitem value="Usuários " ajax="false" icon="ui-icon-document"
					action="#{MenuBean.pageVisualizarUsuarios}"
					actionListener="#{CadUsuarioBean.carregarPg()}" />

				<p:menuitem value="Pedidos " ajax="false" icon="ui-icon-document"
					action="#{MenuBean.pageRelatorioPed}"
					actionListener="#{RelatorioBean.carregarPg()}" />

				<p:separator />

				<p:menuitem value="Produtos " ajax="false" icon="ui-icon-document"
					action="#{MenuBean.pageVisualizaProduto}"
					actionListener="#{RelatorioProdutos.init()}" />

				<p:separator />
				<p:menuitem value="Produtos por hora" ajax="false"
					icon="ui-icon-document"
					action="#{MenuBean.pageItensPorHora()}"
					actionListener="#{reportHour.CarregarPagina()}" />
				<p:menuitem value="Status das Vendas" ajax="false"
					icon="ui-icon-document" action="#{MenuBean.pageTotaisPedidos}"
					actionListener="#{TotalPedidosBean.loadAllData()}"/>
				<p:separator />

				<p:menuitem value="Mov. de Estoque" ajax="false"
					icon="ui-icon-document"
					action="#{MenuBean.pageMovimentacaoEstoque}" />

				<p:menuitem value="Status do Estoque" ajax="false"
					icon="ui-icon-document" action="#{MenuBean.pageStatusEstoque}" />
				<p:separator />

				<p:menuitem value="Lista de Impressão" ajax="false"
					icon="ui-icon-document"
					action="#{MenuBean.pageListaImpressao}"
					actionListener="#{ImpressaoBean.carregaPg()}">

				</p:menuitem>

			</p:submenu>

			<p:submenu label="Configurações">
				<p:menuitem value="Gerais" ajax="false" icon="ui-icon-gear"
					action="#{MenuBean.pageConfiguracoes()}"
					actionListener="#{CadUsuarioBean.refresh()}" />
			</p:submenu>

		</p:menubar>

	</h:form>
</h:body>
</html>